package gov.pbc.nn.kjgl.AbroadApproval.entity;

import gov.pbc.nn.core.entity.BaseEntity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;
@Entity
@Table(name = "T_A2_TASK_ENTITY")
public class A2TaskEntity extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1029847547382946556L;
	
	@PropertyDef(label = "审批类型", description = "0：南宁中支行领导；1：南宁中支在职行员；2：南宁中支离退休干部；3：地市中支行领导")
	@Column(name = "TYPE_")
	private int type;
		
	@Column(name = "CNAME_", length = 60,nullable = false)
	@PropertyDef(label = "中文名字")
	private String cname;
	
	@Column(name = "MALE_")
	@PropertyDef(label = "性别")
	private boolean male = true;
	
	@PropertyDef(label = "年龄")
	@Column(name = "AGE_")
	private int age;
	
	@Column(name = "POLITICAL_")
	@PropertyDef(label = "政治面貌")
	private String political;

	@PropertyDef(label = "部门名称")
	@Column(name = "DEPT_NAME_")
	private String deptname;
	
	@PropertyDef(label = "职务")
	@Column(name = "JOB_")
	private String job;
	
	@PropertyDef(label = "事由")
	@Column(name = "REASON_")
	private String reason;
	
	@PropertyDef(label = "到达国家（地区）")
	@Column(name = "NATION_")
	private String nation;
	
	@PropertyDef(label = "总天数")
	@Column(name = "DAYS_")
	private int days;
	
	@PropertyDef(label = "拟出国（境）开始时间")
	@Column(name = "BEGIN_DAY_")
	private Date beginday;
	
	@PropertyDef(label = "拟出国（境）结束时间")
	@Column(name = "END_DAY_")
	private Date endday;
	
	@PropertyDef(label = "假期类型")
	@Column(name = "VACATION_TYPE_")
	private String vacationtype;

	
	@Column(name = "PROCESS_OPEN_")//改为判断是否由用户开启流程的字段，0为未开启流程，1为已开启过流程
	@PropertyDef(label = "是否由用户开启流程", description = "0：未开启流程；1：已开启流程")
	private boolean processopen = false;
	
	@Column(name = "APPLY_PASSPORT_")
	@PropertyDef(label = "申请普通护照", description = "0：不申请；1：申请")
	private boolean applypassport = false;
	
	@Column(name = "APPLY_HONGKNG_MACAU_")
	@PropertyDef(label = "申请港澳通行证", description = "0：不申请；1：申请")
	private boolean applyhongkongmakau = false;
	
	@Column(name = "APPLY_TAIWAN_")
	@PropertyDef(label = "申请台湾通行证", description = "0：不申请；1：申请")
	private boolean applytaiwan = false;
	
	@PropertyDef(label = "往来香港签注次数", description = "0：无；1：一次；2：两次；3：多次")
	@Column(name = "HONGKONG_TIMES_")
	private int hongkongtimes = 0;
	
	@PropertyDef(label = "往来澳门签注次数", description = "0：无；1：一次；2：两次；3：多次")
	@Column(name = "MACAU_TIMES_")
	private int macautimes = 0;
	
	@PropertyDef(label = "往来台湾签注次数", description = "0：无；1：一次；2：两次；3：多次")
	@Column(name = "TAIWAN_TIMES_")
	private int taiwantimes = 0;
	
	@PropertyDef(label = "备注")
	@Column(name = "A2_REMARK_")
	private String a2remark;
	
	@PropertyDef(label = "任务状态")
	@Column(name = "A2_STATE_")
	private int a2state = 0;
	
	public String getA2remark() {
		return a2remark;
	}

	public void setA2remark(String a2remark) {
		this.a2remark = a2remark;
	}


	public boolean isProcessopen() {
		return processopen;
	}

	public void setProcessopen(boolean processopen) {
		this.processopen = processopen;
	}

	public boolean isApplypassport() {
		return applypassport;
	}

	public void setApplypassport(boolean applypassport) {
		this.applypassport = applypassport;
	}

	public boolean isApplyhongkongmakau() {
		return applyhongkongmakau;
	}

	public void setApplyhongkongmakau(boolean applyhongkongmakau) {
		this.applyhongkongmakau = applyhongkongmakau;
	}

	public boolean isApplytaiwan() {
		return applytaiwan;
	}

	public void setApplytaiwan(boolean applytaiwan) {
		this.applytaiwan = applytaiwan;
	}

	public int getHongkongtimes() {
		return hongkongtimes;
	}

	public void setHongkongtimes(int hongkongtimes) {
		this.hongkongtimes = hongkongtimes;
	}

	public int getMacautimes() {
		return macautimes;
	}

	public void setMacautimes(int macautimes) {
		this.macautimes = macautimes;
	}

	public int getTaiwantimes() {
		return taiwantimes;
	}

	public void setTaiwantimes(int taiwantimes) {
		this.taiwantimes = taiwantimes;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public boolean isMale() {
		return male;
	}

	public void setMale(boolean male) {
		this.male = male;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getPolitical() {
		return political;
	}

	public void setPolitical(String political) {
		this.political = political;
	}

	public String getDeptname() {
		return deptname;
	}

	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public int getDays() {
		return days;
	}

	public void setDays(int days) {
		this.days = days;
	}

	public Date getBeginday() {
		return beginday;
	}

	public void setBeginday(Date beginday) {
		this.beginday = beginday;
	}

	public Date getEndday() {
		return endday;
	}

	public void setEndday(Date endday) {
		this.endday = endday;
	}

	public String getVacationtype() {
		return vacationtype;
	}

	public void setVacationtype(String vacationtype) {
		this.vacationtype = vacationtype;
	}

	public int getA2state() {
		return a2state;
	}

	public void setA2state(int a2state) {
		this.a2state = a2state;
	}
	
	
	
}
